import bpy

class MASK_UI(bpy.types.Panel):
    '''Subset of Frames UI'''
    bl_idname = 'VIEW3D_PT_mask_ui'
    bl_label = 'Generate Mask'
    bl_space_type = 'VIEW_3D'
    bl_region_type = 'UI'
    bl_category = 'BlenderNeRF'
    bl_options = {'DEFAULT_CLOSED'}
    
    def draw(self, context):
        layout = self.layout
        scene = context.scene
        
        layout.alignment = 'CENTER'
        
        layout.use_property_split = True
        layout.prop_search(scene, 'target_occlude', scene, 'objects')
        
        layout.separator()
        layout.operator('object.make_mask', text="Generate Mask")
        